package org.examplexx.mytestwebapplication.service;

import org.examplexx.mytestwebapplication.Mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Login_service {
    public UserMapper userMapper;
    public boolean login(String username, String password) {
        if(userMapper.getUserByUsernameAndPassword(username, password).size()!=0){
            return true;
        }
        return false;
    }
}
